All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.core.Archiver

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.core.Coder
                   |
                   +----com.apple.alpha.core.Archiver

public class Archiver
extends Coder
This class wraps the Objective-C class NSArchiver.


Constructor Index

 o Archiver()
This default constructor is equivalent to Objective-C's [[NSArchiver alloc] init].
 o Archiver(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.

Method Index

 o archiveClassNameForClassName(String)
A wrapper for the - classNameEncodedForTrueClassName: Objective-C instance method.
 o archivedDataWithRootObject(Object)
A wrapper for the + archivedDataWithRootObject: Objective-C class method.
 o archiverData()
A wrapper for the - archiverData Objective-C instance method.
 o archiveRootObjectToFile(Object, String)
A wrapper for the + archiveRootObject:toFile: Objective-C class method.
 o encodeConditionalObject(Object)
A wrapper for the - encodeConditionalObject: Objective-C instance method.
 o encodeRootObject(Object)
A wrapper for the - encodeRootObject: Objective-C instance method.
 o replaceObject(Object, Object)
A wrapper for the - replaceObject:withObject: Objective-C instance method.
 o setArchiveClassNameForClassName(String, String)
A wrapper for the - encodeClassName:intoClassName: Objective-C instance method.
 o unarchiveObjectWithFile(String)
A wrapper for the + unarchiveObjectWithFile: Objective-C class method.

Constructors

 o Archiver
 protected Archiver(boolean shouldAllocate,
                    int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o Archiver
 public Archiver()
This default constructor is equivalent to Objective-C's [[NSArchiver alloc] init].

Methods

 o archiverData
 public native MutableData archiverData()
A wrapper for the - archiverData Objective-C instance method.

 o encodeRootObject
 public native void encodeRootObject(Object rootObject)
A wrapper for the - encodeRootObject: Objective-C instance method.

Overrides:
encodeRootObject in class Coder
 o encodeConditionalObject
 public native void encodeConditionalObject(Object object)
A wrapper for the - encodeConditionalObject: Objective-C instance method.

Overrides:
encodeConditionalObject in class Coder
 o archivedDataWithRootObject
 public static native Data archivedDataWithRootObject(Object rootObject)
A wrapper for the + archivedDataWithRootObject: Objective-C class method.

 o archiveRootObjectToFile
 public static native boolean archiveRootObjectToFile(Object rootObject,
                                                      String path)
A wrapper for the + archiveRootObject:toFile: Objective-C class method.

 o setArchiveClassNameForClassName
 public native void setArchiveClassNameForClassName(String trueName,
                                                    String inArchiveName)
A wrapper for the - encodeClassName:intoClassName: Objective-C instance method.

 o archiveClassNameForClassName
 public native String archiveClassNameForClassName(String trueName)
A wrapper for the - classNameEncodedForTrueClassName: Objective-C instance method.

 o replaceObject
 public native void replaceObject(Object object,
                                  Object newObject)
A wrapper for the - replaceObject:withObject: Objective-C instance method.

 o unarchiveObjectWithFile
 public static native Object unarchiveObjectWithFile(String path)
A wrapper for the + unarchiveObjectWithFile: Objective-C class method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index